package com.yuw.homework06;

public abstract class Student {
    private String stuName;
    private String stuSex;
    private Integer stuAge;
    private String stuNum;

    private Double stuMiddleScore =0.0;
    private Double stuLastScore = 0.0;

    // 行为


    public Student() {
    }

    public Student(String stuName, String stuSex, Integer stuAge, String stuNum, Double stuMiddleScore, Double stuLastScore) {
        this.stuName = stuName;
        this.stuSex = stuSex;
        this.stuAge = stuAge;
        this.stuNum = stuNum;
        this.stuMiddleScore = stuMiddleScore;
        this.stuLastScore = stuLastScore;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuSex() {
        return stuSex;
    }

    public void setStuSex(String stuSex) {
        this.stuSex = stuSex;
    }

    public Integer getStuAge() {
        return stuAge;
    }

    public void setStuAge(Integer stuAge) {
        this.stuAge = stuAge;
    }

    public String getStuNum() {
        return stuNum;
    }

    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }

    public Double getStuMiddleScore() {
        return stuMiddleScore;
    }

    public void setStuMiddleScore(Double stuMiddleScore) {
        this.stuMiddleScore = stuMiddleScore;
    }

    public Double getStuLastScore() {
        return stuLastScore;
    }

    public void setStuLastScore(Double stuLastScore) {
        this.stuLastScore = stuLastScore;
    }

    public abstract double caculateScore();
}
